#include <stdint.h>
#include <stdbool.h>




#ifdef __cplusplus
extern "C" {
#endif

#define MAX_NAME_LENGTH 10
#define MAX_INTRODUCE_LENGTH 100
#define MAX_PERSONS_LENGTH 255
#define FUNCTION_SUCCESS_CODE 0
#define PERSON_TYPE 1

typedef struct PersonId PersonId;

struct PersonId{
    uint8_t id;
    uint8_t typeId;
    uint8_t (*Introduce)(PersonId *self, char *result);
}; 

typedef struct _Person{
    uint8_t age;
    char name[MAX_NAME_LENGTH];
} Person; 





void Persons_Init();
PersonId Person_Create(uint8_t age, char *name);
uint8_t GetPerson(PersonId *id, Person *result);

#ifdef __cplusplus
}
#endif

